
var tableValidator = $('#testform').bootstrapValidator({
	showMessage:false,
	message: '无效的参数',
	feedbackIcons: {
		valid: 'glyphicon glyphicon-ok',
		invalid: 'glyphicon glyphicon-remove',
		validating: 'glyphicon glyphicon-refresh'
	},
	fields: {
		newProjectName: {
			message: 'The newProjectName is not valid',
			validators: {
				notEmpty: {
					message: '项目名称不能为空！'
				}
			}
		}
	}
});

function yanzheng(){
	$('#testform').data("bootstrapValidator").validateFocus();
	//$('#testform').data('bootstrapValidator').isValid()
//	$("#newProjectName").focus();
	console.log("yanzheng")
}
